[Unit]
Description=Podman Dragonfly dfclient  Service
After=network.target
After=network-online.target

[Service]
Type=simple
ExecStart=/usr/bin/podman run \
   --name dfclient  \
   -it \
   --security-opt label=disable \
   -p 65001:65001 \
   -v /data/cloudh/dfclient:/root/.small-dragonfly \
   dragonflyoss/dfclient@sha256:{{ sha256 }} \
   --registry http://{{ groups['harbor'][0] }}:{{ registry.port }} --node {{ groups['master'][0]}}

ExecStop=/usr/bin/podman rm -f dfclient
Restart=always

[Install]
WantedBy=multi-user.target
